package com.cloudm.technician.ui.modules.common.splash

import android.os.Bundle
import com.cloudm.technician.R
import com.cloudm.technician.extensions.addFragmentToActivity
import com.cloudm.technician.ui.base.BaseActivity

/**
 * 作者: wesley
 * 时间: 2017/12/13
 * 描述: 闪屏页
 */
class SplashActivity : BaseActivity() {

    override val layoutResID: Int
        get() = R.layout.activity_splash

    override fun handleBundle(bundle: Bundle) {

    }

    override fun initVariables() {

    }

    override fun initViews(savedInstanceState: Bundle?) {
        val fragment: SplashFragment = manager.findFragmentById(
                R.id.common_content) as? SplashFragment ?: SplashFragment.newInstance()
        addFragmentToActivity(manager, fragment)
    }

    override fun initListener() {

    }
}